package org.fuys.coder.domain.rank.repository;

import org.fuys.coder.domain.substance.model.vo.SubstanceVO;
import org.springframework.data.redis.core.ZSetOperations;

import java.util.List;
import java.util.Set;

/**
 * @projectName: fuys-low-coder
 * @package: org.fuys.coder.domain.rank.repository
 * @className: IHotRankRepository
 * @author: WangJing
 * @description: 热门排行仓储服务
 * @date: 2024/9/6 20:00
 * @version: 1.0
 */
public interface IHotRankRepository {
    void putHotSubstance(String redisKey, List<SubstanceVO> k, List<Double> weights);

    Set<ZSetOperations.TypedTuple<Object>> getHotSubstance(String redisKey, int count);
}
